package com.qianji.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 钟丽诗
 * @Date 2021.3.12
 */

@ApiModel("新增积分属性类")
@Data
public class IntegralAddVO implements Serializable {

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户主键",example = "1")
    private Long userId;

    @NotNull(message = "游戏id不能为空")
    @ApiModelProperty(value = "游戏主键",example = "1")
    private Long GameId;

    @NotNull(message = "积分数量不能为空")
    @ApiModelProperty(value = "积分数量",example = "0")
    private Integer integralNumber;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @NotNull(message = "积分状态不能为空，0代表获得   1代表积分失效")
    @ApiModelProperty(value = "积分状态",example = "0")
    private Integer status;

}
